<?php
/**
 * Jishupu-Laravel-Vue-Admin
 * @Author:技术铺<jishupu@qq.com>
 * @Date: 2021/11/20
 */

namespace App\Http\Controllers;

use App\Services\CacheService;

/**
 * 缓存模块
 * Class CacheController
 * @package App\Http\Controllers
 */
class CacheController extends Controller
{

    /**
     * 清除所有缓存
     * @return \Illuminate\Http\JsonResponse
     */
    public function clear()
    {
        CacheService::clear();
        return $this->success(__('common.cleared'));
    }
}
